package or;

import org.junit.jupiter.api.Test;

public class T2348 {
    public long zeroFilledSubarray(int[] nums) {
        long t = 1, sum = 0;
        for (int i = 0; i < nums.length; i++) {
            if (nums[i] == 0) {
                sum += t;
                t++;
            } else {
                t = 1;
            }
        }

        return sum;

    }


    @Test
    public void test() {


    }

}
